<?php
class MallPhoneModel extends BaseModel
{
	/**
	 * Get phone number
	 * @param int $mid
	 * @param int $fid
	 * @param int $bid
	 * @author Ice<iceinto@mallog.com.cn>
	 */
	public function getList($mid, $fid = 0, $bid = 0){
		$map['mid'] = $mid;
		$map['fid'] = intval($fid);
		$map['bid'] = intval($bid);
		return $this->where($map)->select();
	}
	
	/**
	 * Get mall phone number
	 * @param int $mid
	 * @author Ice<iceinto@mallog.com.cn>
	 */
	public function getMallList($mid){
		return $this->getList($mid);
	}
	
	public function geFloorList($mid, $fid, $bid){
		return $this->getList($mid, $fid, $bid);
	}
}